From 6a7c065e8e418cb7346702007ecaf8fdb3ee0c4f Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 2 Jun 2008 10:56:52 +0100 Subject: [PATCH] Remove domain_pause()/domain_unpause() from SCHEDOP_remote_shutdown. It is pointless and causes the hypervisor to hang if dom0 invokes this hypercall on itself. Signed-off-by: Keir Fraser --- xen/common/schedule.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/xen/common/schedule.c b/xen/common/schedule.c index 4248ae9ea8..2934d07029 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -503,10 +503,7 @@ ret_t do_sched_op(int cmd, XEN_GUEST_HANDLE(void) arg) return ret; } - /* domain_pause() prevens any further execution in guest context. */ - domain_pause(d); domain_shutdown(d, (u8)sched_remote_shutdown.reason); - domain_unpause(d); rcu_unlock_domain(d); ret = 0; -- 2.30.2